package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.hp.hpl.sparta.xpath.TrueExpr;


/**
 * 商户主体实体信息
 * 
 * @author 刘昆
 *
 */

@Entity
@Table(name = "sl_dcms_BusinesssellerBaseInfo")
public class BusinesssellerBaseInfo extends Root{
	
	@Column(nullable = true)
	private String shopName;//店铺名称
	
	@Column(nullable = true)
	private String shopAdress;//经营地址
	
	@Column(nullable = true)
	private double areaMeasure;//面积
	
	@Column(nullable = true)
	private double longitude;//经度
	
	@Column(nullable = true)
	private double latitude;//纬度
	
	@Column(nullable = true)
    private String signPerson;//签订人
		
	@Column(nullable = true)
	private String managementRange;//经营范围
	
	@Column(nullable = true)
	private String cleaningPerson;//保洁人员
	
	@Column(nullable = true)
	private String pictureAdress;//图片
	
	@Column(nullable = true)
	private String fileAdress;//文件
	
	@ManyToOne
	@JoinColumn(nullable = true)
	private Option infoState;//信息状态
	
	@ManyToOne 
	@JoinColumn(unique = true)
	private User managementPerson;//管理人员
	
	@ManyToOne 
	@JoinColumn(nullable = true)
	private User arreaManagementPerson;//社区管理人员
	
	@ManyToOne 
	@JoinColumn(nullable = true)
	private BussinessLevel bussinessLevel;//商户层级
	
	@Column(nullable = true,unique = true)
	private String codeAdress;//二维码扫码地址
	
	@ManyToOne 
	@JoinColumn(nullable = true)
	private Option areaInfo;//社区信息
	
	@Column(nullable = true)
	private String memo;//评审备注

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public User getArreaManagementPerson() {
		return arreaManagementPerson;
	}

	public void setArreaManagementPerson(User arreaManagementPerson) {
		this.arreaManagementPerson = arreaManagementPerson;
	}

	public BussinessLevel getBussinessLevel() {
		return bussinessLevel;
	}

	public void setBussinessLevel(BussinessLevel bussinessLevel) {
		this.bussinessLevel = bussinessLevel;
	}

	public String getCodeAdress() {
		return codeAdress;
	}

	public void setCodeAdress(String codeAdress) {
		this.codeAdress = codeAdress;
	}

	public Option getAreaInfo() {
		return areaInfo;
	}

	public void setAreaInfo(Option areaInfo) {
		this.areaInfo = areaInfo;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getShopAdress() {
		return shopAdress;
	}

	public void setShopAdress(String shopAdress) {
		this.shopAdress = shopAdress;
	}

	public double getAreaMeasure() {
		return areaMeasure;
	}

	public void setAreaMeasure(double areaMeasure) {
		this.areaMeasure = areaMeasure;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public String getSignPerson() {
		return signPerson;
	}

	public void setSignPerson(String signPerson) {
		this.signPerson = signPerson;
	}

	public String getManagementRange() {
		return managementRange;
	}

	public void setManagementRange(String managementRange) {
		this.managementRange = managementRange;
	}

	public String getCleaningPerson() {
		return cleaningPerson;
	}

	public void setCleaningPerson(String cleaningPerson) {
		this.cleaningPerson = cleaningPerson;
	}

	public String getPictureAdress() {
		return pictureAdress;
	}

	public void setPictureAdress(String pictureAdress) {
		this.pictureAdress = pictureAdress;
	}

	public String getFileAdress() {
		return fileAdress;
	}

	public void setFileAdress(String fileAdress) {
		this.fileAdress = fileAdress;
	}

	public Option getInfoState() {
		return infoState;
	}

	public void setInfoState(Option infoState) {
		this.infoState = infoState;
	}

	public User getManagementPerson() {
		return managementPerson;
	}

	public void setManagementPerson(User managementPerson) {
		this.managementPerson= managementPerson;
	}
	
	
}
